<extend name="../Public/base" />
<block name="title"><title>站点设置</title></block>
<block name="body">
    <form class="form form-horizontal" id="form-config-add" method="post">
        <div id="tab-system" class="HuiTab">
            <div class="tabBar cl"><span>基本设置</span><span>SEO设置</span><span>联系方式</span><span>水印设置</span><span>评论设置</span></div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>网站名称：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" placeholder="控制在25个字、50个字节以内" name="site_name" value="{$site_name}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>网站地址：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" placeholder="http://" name="site_host" value="{$site_host}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>网站模板：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                         <span class="select-box">
                            <select class="select" name="site_tpl">
                                <volist name="templates" id="template">
                                    <php>$tpl_selected=$site_tpl==$vo?"selected":"";</php>
                                     <option value="{$template}" {$tpl_selected}>{$template}</option>
                                </volist>
                            </select>
                         </span>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>底部版权信息：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" name="site_copyright" value="{$site_copyright}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">备案号：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" name="site_icp" value="{$site_icp}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">统计代码：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <textarea class="textarea" name="site_tongji">{$site_tongji}</textarea>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">网站状态：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <div class="radio-box">
                            <input name="site_status" type="radio"  value="1" id="site_status-1" <if condition="$site_status eq 1">checked</if>>
                            <label for="site_status-1">开启</label>
                        </div>
                        <div class="radio-box">
                            <input name="site_status" type="radio"  value="0" id="site_status-2" <if condition="$site_status eq 0">checked</if>>
                            <label for="site_status-2">关闭</label>
                        </div>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">网站关闭提示：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <textarea class="textarea" name="site_closeword">{$site_closeword}</textarea>
                    </div>
                </div>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>SEO标题：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" placeholder="控制在25个字、50个字节以内" name="site_seo_title" value="{$site_seo_title}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>关键词：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" placeholder="5个左右,8汉字以内,用英文,隔开" name="site_seo_keywords" value="{$site_seo_keywords}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>描述：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <textarea class="textarea" name="site_seo_description">{$site_seo_description}</textarea>
                    </div>
                </div>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>公司名称：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" name="site_co_name" value="{$site_co_name}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>公司地址：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" name="site_co_address" value="{$site_co_address}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">联系电话：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" name="site_co_tel" value="{$site_co_tel}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">站长邮箱：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" name="site_admin_email" value="{$site_admin_email}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">站长QQ：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" name="site_admin_qq" value="{$site_admin_qq}" class="input-text">
                    </div>
                </div>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">是否开启水印功能：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <div class="radio-box">
                            <input name="PHOTO_MARKUP" type="radio"  value="1" id="PHOTO_MARKUP-1" <if condition="$detail.PHOTO_MARKUP eq 1">checked</if>>
                            <label for="PHOTO_MARKUP-1">开启</label>
                        </div>
                        <div class="radio-box">
                            <input name="PHOTO_MARKUP" type="radio"  value="0" id="PHOTO_MARKUP-2" <if condition="$detail.PHOTO_MARKUP eq 0">checked</if>>
                            <label for="PHOTO_MARKUP-2">关闭</label>
                        </div>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">图片水印路径：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" id="PHOTO_PIC_PATH" name="PHOTO_PIC_PATH" value="{$detail.PHOTO_PIC_PATH}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">图片水印透明度：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" id="PHOTO_DIAPHANEITY" name="PHOTO_DIAPHANEITY" value="{$detail.PHOTO_DIAPHANEITY}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">文字水印内容：</label>
                    <div class="formControls col-xs-8 col-sm-9">

                        <input type="text" id="PHOTO_WATERTEXT" name="PHOTO_WATERTEXT" value="{$detail.PHOTO_WATERTEXT}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">文字水印字体路径：</label>
                    <div class="formControls col-xs-8 col-sm-9">

                        <input type="text" id="PHOTO_TTF_PATH" name="PHOTO_TTF_PATH" value="{$detail.PHOTO_TTF_PATH}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">文字水印大小：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" id="PHOTO_FONTSIZE" name="PHOTO_FONTSIZE" value="{$detail.PHOTO_FONTSIZE}" class="input-text">

                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">文字水印颜色：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" id="PHOTO_FONTCOLOR" name="PHOTO_FONTCOLOR" value="{$detail.PHOTO_FONTCOLOR}" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">水印位置：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <div class="radio-box">
                            <input name="PHOTO_WATERPOS" type="radio"  value="1" id="PHOTO_WATERPOS-1" <if condition="$detail.PHOTO_WATERPOS eq 1">checked</if>>
                            <label for="PHOTO_WATERPOS-1">顶部居左</label>
                        </div>
                        <div class="radio-box">
                            <input name="PHOTO_WATERPOS" type="radio"  value="2" id="PHOTO_WATERPOS-2" <if condition="$detail.PHOTO_WATERPOS eq 2">checked</if>>
                            <label for="PHOTO_WATERPOS-2">顶部居中</label>
                        </div>
                        <div class="radio-box">
                            <input name="PHOTO_WATERPOS" type="radio"  value="3" id="PHOTO_WATERPOS-3" <if condition="$detail.PHOTO_WATERPOS eq 3">checked</if>>
                            <label for="PHOTO_WATERPOS-2">顶部居右</label>
                        </div>
                        <div class="radio-box">
                            <input name="PHOTO_WATERPOS" type="radio"  value="4" id="PHOTO_WATERPOS-4" <if condition="$detail.PHOTO_WATERPOS eq 4">checked</if>>
                            <label for="PHOTO_WATERPOS-4">左边居中</label>
                        </div>
                        <div class="radio-box">
                            <input name="PHOTO_WATERPOS" type="radio"  value="5" id="PHOTO_WATERPOS-5" <if condition="$detail.PHOTO_WATERPOS eq 5">checked</if>>
                            <label for="PHOTO_WATERPOS-5">图片中心</label>
                        </div>
                        <div class="radio-box">
                            <input name="PHOTO_WATERPOS" type="radio"  value="6" id="PHOTO_WATERPOS-6" <if condition="$detail.PHOTO_WATERPOS eq 6">checked</if>>
                            <label for="PHOTO_WATERPOS-6">右边居中</label>
                        </div>
                        <div class="radio-box">
                            <input name="PHOTO_WATERPOS" type="radio"  value="7" id="PHOTO_WATERPOS-7" <if condition="$detail.PHOTO_WATERPOS eq 7">checked</if>>
                            <label for="PHOTO_WATERPOS-7">底部居左</label>
                        </div>
                        <div class="radio-box">
                            <input name="PHOTO_WATERPOS" type="radio"  value="8" id="PHOTO_WATERPOS-8" <if condition="$detail.PHOTO_WATERPOS eq 8">checked</if>>
                            <label for="PHOTO_WATERPOS-8">底部居中</label>
                        </div>
                        <div class="radio-box">
                            <input name="PHOTO_WATERPOS" type="radio"  value="9" id="PHOTO_WATERPOS-9" <if condition="$detail.PHOTO_WATERPOS eq 9">checked</if>>
                            <label for="PHOTO_WATERPOS-9">底部居右</label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">是否开启评论审核：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <div class="radio-box">
                            <input name="site_comment_status" type="radio"  id="site_comment_status-2" value="1"  <if condition="$site_comment_status eq 1">checked</if>>
                            <label for="site_comment_status-2">开启</label>
                        </div>
                        <div class="radio-box">
                            <input name="site_comment_status" type="radio"  value="0" id="site_comment_status-2" <if condition="$site_comment_status eq 0">checked</if>>
                            <label for="site_comment_status-2">关闭</label>
                        </div>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">发送被评论邮件：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <div class="radio-box">
                            <input name="site_comment_email_status" type="radio"  value="1" id="site_comment_email_status-1" <if condition="$site_comment_email_status eq 1">checked</if>>
                            <label for="site_comment_email_status-1">开启</label>
                        </div>
                        <div class="radio-box">
                            <input name="site_comment_email_status" type="radio"  value="0" id="site_comment_email_status-2" <if condition="$site_comment_email_status eq 0">checked</if>>
                            <label for="site_comment_email_status-2">关闭</label>
                        </div>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">评论时间间隔：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text mr-10" value="{$comment_time_interval}" name="comment_time_interval" style="width: 60px;">秒
                    </div>
                </div>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
                <button class="btn btn-default radius" type="reset">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
</block>

<block name="js">
<script type="text/javascript">
    $(function(){
        $.Huitab("#tab-system .tabBar span","#tab-system .tabCon","current","click","0");
    });
</script>
</block>